﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="CommentList.aspx.cs" Inherits="GoShopping.Web.SystemManager.CommentList" Title="无标题页" %>
<%@ Register assembly="ExtensionGridView" namespace="ExtensionControls" tagprefix="cc1" %>
<%@ Register assembly="GoShopping.Components" namespace="BaseText" tagprefix="cc2" %>
<%@ MasterType VirtualPath="~/ProductManager/ProductManage.Master" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table class="style1" width="800px">
            <tr>
                <td style="width: 153px">
                    商品类型:<asp:DropDownList ID="ddlPrdtType" runat="server" 
                        onselectedindexchanged="ddlPrdtType_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
        <table class="style1">
            <tr valign="top">
                <td>
                    <cc1:ExtensionGridView ID="extGVPrdtComment" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" 
                        onpageindexchanging="extGVPrdtComment_PageIndexChanging" 
                        onrowcommand="extGVPrdtComment_RowCommand" PagerText="当前第{0}页,共{1}页{2}条记录" 
                        RecordCount="-1" SortAscImageUrl="" SortDescImageUrl="" Width="495px" 
                        EmptyDataText="没有数据!" PageSize="20">
                        <Columns>
                            <asp:TemplateField HeaderText="ID" Visible="False">
                                <ItemTemplate>
                                    <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="商品">
                                <ItemTemplate>
                                    <asp:Label ID="lblPrdtID" runat="server" Text='<%# Eval("ProductID") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="评论人">
                                <ItemTemplate>
                                    <asp:Label ID="lblUserID" runat="server" Text='<%# Eval("UserID") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="标题">
                                <ItemTemplate>
                                    <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("title") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="内容">
                                <ItemTemplate>
                                    <asp:Literal ID="lblContent" runat="server" Text='<%# Eval("Content") %>'></asp:Literal>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="评论时间">
                                <ItemTemplate>
                                    <asp:Label ID="lblCreateDate" runat="server" Text='<%# Eval("CreateDate") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbtnIsCover" runat="server" 
                                        CommandArgument='<%# Eval("id") %>' CommandName="IsReply" Text="回复"></asp:LinkButton>
                                    <asp:LinkButton ID="lbtnCover" runat="server" 
                                        CommandArgument='<%# Eval("id") %>' CommandName="Cover" Text="屏蔽"></asp:LinkButton>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                        </Columns>
                    </cc1:ExtensionGridView>
                </td>
                <td>
                    <asp:DetailsView ID="dtPrdtComment" runat="server" AutoGenerateRows="False" 
                        DefaultMode="Edit" onitemcommand="dtPrdtComment_ItemCommand" 
                        Width="300px">
                        <Fields>
                            <asp:TemplateField HeaderText="id" Visible="false">
                                <ItemTemplate>
                                    <asp:Label ID="lblID" runat="server" Text='<%# Eval("id") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="回复人">
                                <ItemTemplate>
                                    <asp:Label ID="lblReplyerID" runat="server" Text='<%# Eval("ReplyerName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="回复时间" Visible="False">
                                <ItemTemplate>
                                    <asp:Label ID="lblReplyDate" runat="server" Text="Label"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="回复内容">
                                <ItemTemplate>
                                    <cc2:ZLTextBox ID="zlTxtPrdtRemark" runat="server" Height="200px" 
                                        TextMode="MultiLine" Width="200px" Text='<%# Eval("ReplaceText") %>'></cc2:ZLTextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Button ID="btnReply" runat="server" Text="回复" CommandName="Reply" CommandArgument='<%# Eval("id") %>' />
                                    <%--<asp:Button ID="btnClear" runat="server" Text="清空" CommandName="Clear" />--%>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Fields>
                    </asp:DetailsView>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
